﻿

using System;
using System.Text;
using System.Reflection;
using Microsoft.Practices.Unity.InterceptionExtension;
using System.Runtime.Caching;

using System.Collections.Generic;

namespace DanGao.Infrastructure.Log
{

    [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
    public class LogAttribute : Attribute
    {
        /// <summary>
        /// 日志类型
        /// </summary>
        public LogType Type { get; set; }

        /// <summary>
        /// 日志消息类型
        /// </summary>
        public LogMessageType MessageType { get; set; }

        #region 构造函数
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="type">日志类型</param>
        public LogAttribute(LogType type)
        {
            this.Type = type;
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="type">日志类型</param>
        /// <param name="messageType">日志消息类型</param>
        public LogAttribute(LogType type, LogMessageType messageType)
        {
            this.Type = type;
            this.MessageType = messageType;
        }

        #endregion
    }

}
